export enum DatabaseType {
  MYSQL = 'mysql',
  POSTGRES = 'postgres',
}

export interface DatabaseCommonConfig {
  host: string;
  port: number;
  user: string;
  password: string;
  database: string;
}

export interface MySQLConfig extends DatabaseCommonConfig {
  waitForConnections: boolean;
  connectionLimit: number;
  queueLimit: number;
}

export interface PostgresConfig extends DatabaseCommonConfig {
  max: number;
  idleTimeoutMillis: number;
  connectionTimeoutMillis: number;
}
